<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/sks/cms/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<% String path = request.getContextPath(); 
   String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>忘记密码: sks</title>
<link href="/css/global/header.css" rel="stylesheet" type="text/css">
<script src="/files/json0000.js" type="text/javascript"></script>
<link href="/files/killer_c.css" rel="stylesheet" type="text/css" media="all"  />
<link href="/files/category.css" rel="stylesheet" type="text/css" media="all"  />
<link href="/files/commBox.css" rel="stylesheet" type="text/css" media="all"  />
<SCRIPT language=JavaScript src="/js/FoshanRen.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">

function validateForm(form){
	var password = form.loginPwd.value;
	var confirm_password = form.confirm_password.value;
	var divMessage = document.getElementById("messagePwd");
	if(password==null || trim(password)==""){
		//alert("新密码不能为空");
		divMessage.innerHTML = "新密码不能为空";
		form.loginPwd.focus();
		return false;
	}
	if(password.length<6 || password.length>20){
		//alert("密码的长度不正确,正确的长度为6-20位字符");
		divMessage.innerHTML = "密码的长度不正确,正确的长度为6-20位字符";
		form.loginPwd.focus();
		return false;
	}
	if(password!=confirm_password){
		//alert("两次输入的密码不一致，请重新输入。");
		divMessage.innerHTML = "两次输入的密码不一致，请重新输入。";
		form.loginPwd.focus();
		return false;
	}
	return true;
}

function clearWarnMessage(){
	var divMessage = document.getElementById("messagePwd");
	if(divMessage){
		divMessage.innerHTML = "";
	}
	
}
</SCRIPT>
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<style type="text/css">

.STYLE1 {color: #666666}
.logintitle H2 {
	DISPLAY: block; FONT-WEIGHT: bold; FONT-SIZE: 14px; MARGIN: 0px 0px 0px 0px;PADDING:0 0 0 10px;color:#525252
}
.ablue2{
	FONT-SIZE: 14px; color:#0066FF
}

</style>
</head>

<body>

<!-- Head End -->

<div class="wrap">
	<jsp:include page="../header.jsp"/><%--头部--%>
	<div>
		<div>
			<a href="<%=basePath%>" hidefocus="true">SKS房地产</a>&nbsp;&gt;&nbsp;忘记密码
		</div>		
		<div class="clear"></div>
	</div>
      <div class="site-body">        
         <div class="site-content"> 
            <div id="headerBottom"></div>  
				<TABLE cellSpacing=15 cellPadding=0 width="100%" border=0 align="center">
				  <TBODY>
				  <TR>
				    <TD vAlign=top align=middle>
				      <TABLE cellSpacing=0 cellPadding=0 width="65%" border=0 align="center">
				        <TBODY>
				        <TR>
				          <TD vAlign=top width="99%" colSpan=4>
				            <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
				            border=0>
				              <TBODY>
				              <TR>
				                <TD vAlign=top align=left width=10 bgColor=#ddddcc></TD>
				                <TD vAlign=bottom noWrap width="20%" bgColor=#ddddcc 
				                  height=28><SPAN class=title>&nbsp;重设新密码&nbsp;&nbsp;</SPAN></TD>
				                <TD vAlign=bottom align=right width="79%" 
				                bgColor=#ddddcc>&nbsp;</TD>
				                <TD vAlign=top align=right width=10 bgColor=#ddddcc></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
				      <TABLE id="" cellSpacing=0 cellPadding=0 width="65%" bgColor=#ddddcc 
				      border=0 align="center">
				        <TBODY>
				        <TR bgColor=#ddddcc>
				          <TD vAlign=top bgColor=#ddddcc>
				            <TABLE cellSpacing=3 cellPadding=0 width="100%" align=center 
				            bgColor=#ddddcc border=0>
				              <TBODY>
				              <TR>
				                <TD vAlign=top bgColor=#ffffff>
				                  <TABLE class=font9 height=200 cellSpacing=10 cellPadding=0 
				                  width="100%" align=center border=0>
				                    <TBODY>
				                    <TR>
				                      <TD vAlign=top>
				                        <form action="<%=basePath %>sks/privilege/users/post.do" method="post" onsubmit="javascript:return validateForm(this)">
										<INPUT TYPE="hidden" NAME="method" value="changepassword">
										<INPUT TYPE="hidden" NAME="loginName" value="${param.loginName}">
										<INPUT TYPE="hidden" NAME="validateCode" value="${param.validateCode }">
				                              <table border="0" cellpadding="4" cellspacing="4" width="100%">
				                                <tbody>
				                                <tr align="left">
				                                  <td colspan="3" class="font-error"></td>
				                                </tr>
				                                <tr align="left">
				                                  <td colspan="3"><p><span class="font-step">最后一步：</span><span class="font14b">输入您的新密码</span></p></td>
				                                </tr>
				                                <tr align="left">
				                                  <td colspan="3" class="font9">密码要求由英文字母（a-z大小写均可）、阿拉伯数字(0-9)组成且长度为6-20位字符。</td>
				                                </tr>
				                                <tr align="left">
				                                  <td class="font12b" align="right" width="21%">您的新密码是</td>
				                                  <td width="31%"><input type="password" name="loginPwd" maxlength="20" size="24" onchange="clearWarnMessage();"></td>
				                                  <td class="font9" width="48%"></td>
				                                </tr>
				                                <tr>
				                                	<div id="messagePwd" style="left:250px;position:relative;font-size:13px;margin:5px 10px 5px 0;float: left; color: red"/>
				                                </tr>
				                                <tr align="left">
				                                  <td class="font12b" align="right">重新输入一遍</td>
				                                  <td><input type="password" name="confirm_password" maxlength="20" size="24" onchange="clearWarnMessage();"></td>
				                                </tr>
				                                <!--
				                                <tr>
				                                	<div id="messageConfirmPwd" style="left:250px;position:relative;font-size:13px;margin:5px 10px 5px 0;float: left; color: red"/>
				                                </tr>
				                                -->
				                                <tr align="left">
				                                  <td>&nbsp;</td>
				                                  <td align="right">
				                                  	<button id="Image1" alt="继续" type="submit">完成</button><!-- <input type="image" alt="完成" src="/images/login/az-finish.gif" border=0 name="image1" ID=Image1/> -->
				                                  </td>
				                                  <td>&nbsp;</td>
				                                </tr>
				                                  </tbody></table>
				</form>
				</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
				      <TABLE cellSpacing=0 cellPadding=0 width="65%" bgColor=#ddddcc border=0 align="center">
				        <TBODY>
				        <TR vAlign=bottom>
				          <TD align=left bgColor=#ddddcc height=10></TD>
				          <TD align=right bgColor=#ddddcc height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
         </div>
      </div>
	<jsp:include page="../rooster.jsp"/><%--尾部--%> 
</div>
</body>
</html>





